g++ -shared -lccmalloc -I /usr/lib/jvm/java-6-sun/include  -I /usr/lib/jvm/java-6-sun/include/linux JSegmentation.cpp Segmentation.cpp GCoptimization.cpp graph.cpp LinkedBlockList.cpp maxflow.cpp block.h energy.h Matrix.h -o JSegmentation.so
